<template>
	<view class="my-content-info">
		<view class="title">总金额</view>
		<view class="content">
			<view class="unit">￥</view>
			<u--input v-model="value" type="number" fontSize="20px" border="bottom"></u--input>
		</view>
		<view class="btn-box" @tap="submit">点击收款</view>
	</view>
</template>

<script>
	import {
		getStoreData,
		dealNum,
		setStoreData,
		httpPost,
		httpGet,
	} from "@/utils/http.js";
	const pic1 = require(`@/img/my/my1.png`);
	const avatar = require(`@/img/my/avatar1.jpg`);
	export default {
		data() {
			return {
				value: "",

			};
		},
		onLoad() {
			this.userInfo = getStoreData("userInfo");


		},
		methods: {
			submit() {
				uni.scanCode({
					success: function(res) {
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
					}
				});
			}


		},
	};
</script>

<style lang="scss">
	.my-content-info {
		background-color: #fff;
		margin-left: 30rpx;
		margin-right: 30rpx;

		.title {
			margin-bottom: 20rpx;
		}

		.content {
			display: flex;
			flex-direction: row;
			justify-content: flex-start;

			.unit {
				font-size: 36rpx;
				font-weight: bold;
				padding-top: 20rpx;
			}
		}

		.btn-box {
			margin-top: 40rpx;
			width: 100%;
			background-color: #3c9cff;
			color: #fff;
			text-align: center;
			height: 100rpx;
			line-height: 100rpx;
		}
	}
</style>